//
//  GoodsManageModel.m
//  Shengzhuli
//
//  Created by subook on 16/8/19.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "GoodsManageModel.h"

@implementation GoodsManageModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.thumbnailUrl = dict[@"thumbnailUrl"];
        self.productBannerUrl = dict[@"productBannerUrl"];
        self.residualStock = dict[@"residualStock"];
        self.freightInMaxCount = dict[@"freightInMaxCount"];
        self.sort = dict[@"sort"];
        self.shopId = dict[@"shopId"];
        self.productDetail = dict[@"productDetail"];
        self.productInShopCarCount = dict[@"productInShopCarCount"];
        self.name = dict[@"name"];
        self.indexActivityImage = dict[@"indexActivityImage"];
        self.indexActivityPosition = dict[@"indexActivityPosition"];
        self.isInIndexActivity = dict[@"isInIndexActivity"];
        self.productNo = dict[@"productNo"];
        self.latitude = dict[@"latitude"];
        self.stockCount = dict[@"stockCount"];
        self.bannerUrl = dict[@"bannerUrl"];
        self.bannerType = dict[@"bannerType"];
        self.shopAddressDetail = dict[@"shopAddressDetail"];
        self.id = dict[@"id"];
        self.longitude = dict[@"longitude"];
        self.price = dict[@"price"];
        self.createDate = dict[@"createDate"];
        self.freightInEveryAdd = dict[@"freightInEveryAdd"];
        self.status = dict[@"status"];
        self.productParams = dict[@"productParams"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[GoodsManageModel alloc]initWithDict:dict];
}

@end

